package com.hwua.dao;

import com.hwua.entity.News;

import java.util.List;

public interface INewsDao {
    /**
     * 查询所有新闻信息
     * @return
     * @throws Exception
     */
    public List<News> queryAll() throws Exception;

    /**
     * 根据标题查找
     * @param id
     * @return
     * @throws Exception
     */
    public News query(Long id) throws Exception;
}
